Skip to content

Fix LogRecord deprecated API#34

Merged
mladjan-gadzic merged 3 commits intomasterfrom
issue#1280/fix-logrecord-deprecated-api
Mar 30, 2026
Merged

Fix LogRecord deprecated API#34
mladjan-gadzic merged 3 commits intomasterfrom
issue#1280/fix-logrecord-deprecated-api

Conversation

@mladjan-gadzic
Copy link
Copy Markdown
Contributor

@mladjan-gadzic mladjan-gadzic commented Mar 30, 2026

Fixes https://github.com/G-Research/gr-oss/issues/1280

  • replaced trace_id, span_id and trace_flags with Context inside LogRecord constructor
  • added test that checks for LogRecord deprecation warnings
  • pinned otel libs version to comply with internal versions becauseopentelemetry-sdk 1.4.0 introduces breaking changes to LogRecord which is the reason of CI failure since it always assumes the latest version of deps because those are not pinned in pyproject.toml

@mladjan-gadzic mladjan-gadzic merged commit 56461bb into master Mar 30, 2026
4 checks passed
@mladjan-gadzic mladjan-gadzic deleted the issue#1280/fix-logrecord-deprecated-api branch March 30, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants